let { Schema, model } = require("mongoose");
let {studentModel} = require('./studentModel');
let {TestModel}=require('./testsModel');
//let {TestPaperModel}=require('./testPaperModel')
let testedSchema=new Schema({
    studentId: {   // 所属学员 _id
        type: Schema.Types.ObjectId,
        ref: studentModel
    },
    testId: {  // 关联试卷 _id
        type: Schema.Types.ObjectId,
        ref: TestModel
    },
    
    score: String // 成绩
})
let testedModel = model("testedModel", testedSchema, "testeds");
module.exports={testedModel};